<template>
    <dl :id="item.id">
      <dt>
        <img :src="item.img" alt="">
      </dt>
      <dd>
        <h4>{{item.title}}</h4>
        <p>{{item.con}}</p>
        月售<span>{{item.num}}</span><br>
        ￥<span>{{item.mony}}</span>
        <count :item="item" @next="next" @prev="prev"></count>
      </dd>
    </dl>
</template>

<script>
import count from "./count"
export default {
    data(){
      return {

      }
    },
    components:{
      count
    },
    props:["item","Ind"],
    methods:{
      next(item){
        this.$emit("next",item)
      },
      prev(item){
        this.$emit("prev",item)

      }
    }
}
</script>


<style scoped lang="scss">
  *{
    list-style: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  dl{
    display: flex;
    margin: 10px 0;
    padding: 10px;
    dt{
      width: 80px;
      height: 80px;
      img{
        width: 100%;
        height: 100%;
      }
    }
    dd{
      flex:1;
      h4{
        font-size: 30px;

      }
    }
  }
</style>
